<?php
echo "<input type = \"button\" id = \"ajout_convention\" name = \"ajout_convention\" value = \"Ajout d'une convention\" onClick=\"afficheConventions()\"/><br />";
echo "<input type = \"button\" id = \"recapitulatif_convention\" name = \"recapitulatif_convention\" value = \"Tableau recapitulatif\" onClick=\"affichageConvention('recapConventions')\" /><br />";
echo "<a href=\"recapConventionsARF85.php\"><input type = \"button\" id = \"recapitulatifARF85\" name = \"recapitulatifARF85\" value = \"Récapitulatif des conventions ARF85\" /></a>";
?>

<?php
if ($_SESSION['ERDF'] == "OK") {
    ?>
    <div id="nomConventions" style="display: none">

        <ul>
            <li id="conventionARF85" onClick="affichageConvention('ARF85')" ><a href="#"> Convention ARF85 </a></li> 
            <li id="conventionARF85ERDF" onClick="affichageConvention('ARF85ERDF')"><a href="#"> Convention ARF85 ERDF </a></li> 
            <li id="conventionPosteDP" onClick="affichageConvention('PosteDP')"><a href="#"> Convention Poste DP </a></li> 
            <li id="conventionCS06" onClick="affichageConvention('CS06')"><a href="#"> Convention CS06 </a></li>
            <li id="conventionC06" onClick="affichageConvention('C06')"><a href="#"> Convention C 06 </a></li>
            <li id="conventionFIPPoste" onClick="affichageConvention('FIPPoste')"><a href="#"> Convention FIP Poste </a></li>
            <li id="conventionFIPLigne1" onClick="affichageConvention('FIPLigne1')"><a href="#"> Convention FIP Ligne1 </a></li>
        </ul>

    </div>

    <div id="ARF85" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('ARF85')"></a>
        <?php include('formulaireConventionARF85.php'); ?>
    </div>
    <div id="ARF85ERDF" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('ARF85ERDF')"></a>
        <?php include('formulaireConventionARF85ERDF.php'); ?>
    </div>
    <div id="PosteDP" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('PosteDP')"></a>
        <?php include('formulaireConventionPosteDP.php'); ?>
    </div>
    <div id="CS06" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('CS06')"></a>
        <?php include('formulaireConventionCS06.php') ?>
    </div>
    <div id="C06" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('C06')"></a>
        <?php include('formulaireConventionC06.php'); ?>
    </div>
    <div id="FIPPoste" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('FIPPoste')"></a>
        <?php include('formulaireConventionFIPPoste.php'); ?>
    </div>
    <div id="FIPLigne1" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('FIPLigne1')"></a>
        <?php include('formulaireConventionFIPLigne1.php'); ?>
    </div>    
    <div id="recapConventions" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 138px; height: auto; " scrolltop="0" scrollleft="0"><a href="#" class="close" onClick="fermerConvention('recapConventions')"></a>
        <?php include('recapitulatifConventions.php'); ?>
    </div>
<?php } ?>

<script type="text/javascript">  
    function afficheConventions()
    {
        $('#nomConventions').show();
    }
</script>